<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
</head>
<body>
<!--menu-->
<nav class="navbar-default navbar-static-side" role="navigation" th:fragment="menu">
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element" style="margin: 0 auto; width: 50%;">
                        <span>
                            <img alt="image" class="img-circle" src="" style="width: 64px;height: 64px;"/>
                        </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs">
                                        <strong class="font-bold" id="user"></strong>
                                    </span>
                                </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="/logout">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">
                    外汇交易
                </div>
            </li>

            <li shiro:hasRole="admin">
                <a href="/data" target="left_content">
                    <i class="glyphicon glyphicon-stats" aria-hidden="true"></i>
                    <span class="nav-label">可视化数据</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
               <a href="/customer" target="left_content">
                    <i class="glyphicon glyphicon-user" aria-hidden="true"></i>
                    <span class="nav-label">客户管理</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/account" target="left_content">
                    <i class="glyphicon glyphicon-credit-card" aria-hidden="true"></i>
                    <span class="nav-label">账户管理</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/systemParam" target="left_content">
                    <i class="fa fa-wrench" aria-hidden="true"></i>
                    <span class="nav-label">系统参数管理</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/pending" target="left_content">
                    <i class="fa fa-wrench" aria-hidden="true"></i>
                    <span class="nav-label">审批数据管理</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/request">
                    <i class="glyphicon  glyphicon-th-list" aria-hidden="true"></i>
                    <span class="nav-label">交易查询</span>
                </a>
                <ul class="nav nav-second-level">
                    <li class="admin" shiro:hasRole="admin">
                    <a href="/transaction" target="left_content">
                        <i class="glyphicon glyphicon-search" aria-hidden="true"></i>核心交易查询
                    </a>
                    </li>
                </ul>

                <ul class="nav nav-second-level" shiro:hasRole="admin">
                    <li shiro:hasRole="admin">
                        <a href="/position" target="left_content">
                            <i class="glyphicon glyphicon-search" aria-hidden="true"></i>拆盘交易查询
                        </a>
                    </li>
                </ul>

                <ul class="nav nav-second-level">
                    <li shiro:hasRole="admin">
                        <a href="/accumulate" target="left_content">
                            <i class="glyphicon glyphicon-search" aria-hidden="true"></i>累总交易查询
                        </a>
                    </li>
                </ul>
            </li>
            <li shiro:hasRole="admin">
                <a href="/currencyPair" target="left_content">
                    <i class="glyphicon glyphicon-search" aria-hidden="true"></i>
                    <span class="nav-label">货币对</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/quoteSource" target="left_content">
                    <i class="glyphicon glyphicon-search" aria-hidden="true"></i>
                    <span class="nav-label">价源</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/request" target="left_content">
                    <i class="fa fa-money" aria-hidden="true"></i>
                    <span class="nav-label">交易</span>
                </a>
                <ul class="nav nav-second-level ">
                    <li shiro:hasRole="admin">
                        <a href="/quotePrice" target="left_content">
                            <i class="glyphicon glyphicon-usd" aria-hidden="true"></i>远期交易
                        </a>
                    </li>
                    <li shiro:hasRole="admin">
                        <a href="/option" target="left_content">
                            <i class="glyphicon glyphicon-usd" aria-hidden="true"></i>期权交易
                        </a>
                    </li>
                    <li shiro:hasRole="admin">
                        <a href="/bookrate" target="left_content">
                            <i class="glyphicon glyphicon-usd" aria-hidden="true"></i>预定汇率
                        </a>
                    </li>
                </ul>
            </li>
            <li shiro:hasRole="admin">
                <a href="/userlist" target="left_content">
                    <i class="glyphicon glyphicon-user" aria-hidden="true"></i>
                    <span class="nav-label">用户管理</span>
                </a>
            </li>
            <li shiro:hasRole="admin">
                <a href="/personinfo" target="left_content">
                    <i class="fa fa-user" aria-hidden="true"></i>
                    <span class="nav-label">个人信息</span>
                </a>
                <ul class="nav nav-second-level" shiro:hasRole="admin">
                    <li shiro:hasRole="admin">
                        <a href="/updateUserPassword" >
                            <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>修改密码
                        </a>
                    </li>
                    <li shiro:hasRole="admin">
                        <a href="/userset" target="left_content">
                            <i class="glyphicon glyphicon-lock" aria-hidden="true"></i>个人资料
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</nav>
<!--topbar-->
<!--<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0" th:fragment="topbar">
    <div class="navbar-header">
        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary ">
            <i class="fa fa-bars"></i>
        </a>
    </div>
    <ul class="nav navbar-top-links navbar-right">
        <li>
                        <span class="m-r-sm text-muted welcome-message">
                            <a href="/index" title="返回首页"><i class="fa fa-home"></i></a>
                            欢迎使用外汇交易平台
                        </span>
        </li>
        <li>
            <a href="/login">
                <i class="fa fa-sign-out"></i> 退出
            </a>
        </li>
    </ul>
</nav>-->


</body>
</html>


